import request from '@/utils/request.js'
// 请求所有城市
export function chartDataIndexes () {
  return request({ url: '/chart-data/indexes' })
}
// 模拟面试题
export function questions (id) {
  // console.log(id)
  return request({ url: '/questions/' + id, needToken: true })
}
// 收藏面试题
export function questionsCollect (data) {
  return request({
    url: '/questions/collect',
    method: 'post',
    data,
    needToken: true
  })
}
// 模拟面试筛选条件
export function interviewFilters () {
  return request({ url: '/interview/filters' })
}
// 获取模拟面试
export function interviewQuestions (params) {
  return request({ url: '/interview/questions', params, needToken: true })
}
// 提交试题
export function questionsSubmit (data) {
  return request({
    url: '/questions/submit',
    method: 'post',
    data,
    needToken: true
  })
}
// 面试题反馈
export function questionsComment (data) {
  return request({
    url: '/questions/comment',
    method: 'post',
    data,
    needToken: true
  })
}
